/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.db.dao;

import com.yunhoo.base.model.Category;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Administrator
 */
public interface CategoryDao {

    public void insert(Category param) throws SQLException;

    public void update(Category param) throws SQLException;

    public void updateIsEnd(Category param) throws SQLException;

    public void delete(Category param) throws SQLException;

    public void deleteById(Category param) throws SQLException;

    public Category queryById(Category param) throws SQLException;

    public List<Category> queryAll(Category param) throws SQLException;

    public List<Category> directSubNodes(Category param) throws SQLException;

    public Category nameRepeatForInsert(Category param) throws SQLException;

    public Category nameRepeatForUpdate(Category param) throws SQLException;

    public List<Category> queryListByOrgAndYear(Category param) throws SQLException;
}
